<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <title><?php if($title){ echo $title; } ?></title>
<link rel="stylesheet" href="<?php echo base_url();?>css/style.css" type="text/css" media="screen"/>
<script type="text/javascript" src="<?php echo base_url();?>editor/tiny_mce.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.js"></script>
 </head>
 <body>
<?php
 if($this->session->userdata('logged_in'))
   {
   $logged_in=$this->session->userdata('logged_in');
   ?>
<div id="menu">
    <a href="#" class="button">Chào <?php 
    echo ($LoggedUser->title == 'SD' ? 'Sales Director': 'User'); 
    ?></a>
   <a href="<?php echo site_url('home');?>" class="button">Home</a>
   <?php 
   if($logged_in['su']=="1"){ ?>
   <a href="<?php echo site_url('user_data');?>" class="button">Users</a>
   <?php }else{ ?>
   <a href="<?php echo site_url('user_data/my_account');?>" class="button">My Account</a>
   <?php
   }
   ?>
   <?php 
   if($logged_in['su']=="1"){ ?>
   <a href="<?php echo site_url('qbank');?>" class="button">Question Bank</a>
	<?php
	}
	?>
   <a href="<?php echo site_url('quiz');?>" class="button">Quiz/Test</a>
   <?php 
   if($logged_in['su']=="1"){ ?>
   <a href="<?php echo site_url('result/');?>" class="button">Result</a>
  <a href="<?php echo site_url('home/setting');?>" class="button">Setting</a>
	<?php
	}else{
	?>
	 <a href="<?php echo site_url('result/user');?>" class="button">Result</a>
  
	<?php
	}
	?>
	<a href="<?php echo site_url('home/logout');?>" class="button">Logout</a>
   
</div>   
   <?php
   }
   ?>
